package com.wolf.controller;

import org.springmvc.stereotype.Controller;
import org.springmvc.web.bind.annotation.RequestMapping;
import org.springmvc.web.bind.annotation.RequestMethod;
import org.springmvc.ui.ModelMap;
/**
 * @author marin
 * @version 1.0
 * @date 2025/9/2 20:45
 * @desc 控制器对象
 */
@Controller
public class HelloController {

    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String welcome(ModelMap model){
        model.addAttribute("username","张涛洪大帅哥");
        return "hello";
    }
}
